package io_urfave

import (
	"github.com/urfave/cli/v2"

	"clean/usecase"
)

type Handler struct {
	app usecase.Input
	cli *cli.App
}

func NewHandler(app usecase.Input) *Handler {
	r := &Handler{
		app: app,
	}
	return r
}

func (r *Handler) Init(root *cli.App) {
	r.cli = root
	root.Commands = append(root.Commands, Hello(r.app))
}
